package com.csc.banking.domain;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="savingaccount_has_interstrate")

public class SavingAccount_Interestrate {

	@Id
	//private BigInteger savingAccount;
	//private Integer intersRateId;
	private Date fromDate;
	private Double balance;
	@ManyToOne 
	@JoinColumn(name="savingAccount")
	private SavingAccount savingaccounts;
	
	@ManyToOne
	@JoinColumn(name="intersRateId")
	private SavingInterestRate savinginteresrate;
	
	
//	public BigInteger getSavingAccount() {
//		return savingAccount;
//	}
//
//	public void setSavingAccount(BigInteger savingAccount) {
//		this.savingAccount = savingAccount;
//	}

//	public Integer getIntersRateId() {
//		return intersRateId;
//	}
//
//	public void setIntersRateId(Integer intersRateId) {
//		this.intersRateId = intersRateId;
//	}

	public Date getFromDate() {
		return fromDate;
	}

	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}

	public Double getBalance() {
		return balance;
	}

	public void setBalance(Double balance) {
		this.balance = balance;
	}

	public SavingAccount getSavingaccounts() {
		return savingaccounts;
	}

	public void setSavingaccounts(SavingAccount savingaccounts) {
		this.savingaccounts = savingaccounts;
	}

	public SavingInterestRate getSavinginteresrate() {
		return savinginteresrate;
	}

	public void setSavinginteresrate(SavingInterestRate savinginteresrate) {
		this.savinginteresrate = savinginteresrate;
	}

	
	
}
